package edu.xust.dao;


import edu.xust.entity.Drivers;
import edu.xust.page.PageInfo;

import java.util.List;

public interface DriversDao {


    /**
     * 分页查询
     * @param pageInfo
     * @return
     * @throws Exception
     */
    List<Drivers> getDriversByPage(PageInfo pageInfo) throws Exception ;

    /**
     * 添加司机
     * @param drivers
     * @return
     * @throws Exception
     */
    Integer addDrivers(Drivers drivers);

    /**
     * 根据id查询单个司机
     * @param id
     * @return
     * @throws Exception
     */
    Drivers getDriverById(String id) throws Exception;

    /**
     * 根据司机编号查询货单信息
     * @param id
     * @return
     * @throws Exception
     */
    Drivers getDriversWithOrder(String id) throws Exception;

    /**
     * 修改司机信息
     * @param drivers
     * @return
     */
    Integer editDrivers(Drivers drivers);

    /**
     * 根据id删除司机
     * @param id
     * @return
     */
    Integer deleteDrivers(String  id);



}
